package com.xt.string;

public class StringDemo3 {
    public static void main(String[] args) {
        String name = "黑马";
        name +="波妞";
        System.out.println(name);

        // 2. 只要以双引号给出的字符串对象 存储在常量池中
        String s1 = "abc";
        String s2 = "abc";
        System.out.println(s1 == s2);

        // 3. new方式创建字符串对象

    }
}
